<script th:src="@{/scripts/user/edit.js}"></script>
<form id="saveForm" method="post">
    <input type="hidden" name="id" id="id" th:value="${user.id}"/>
<div class="addInfBtn" >
    <h3 class="itemTit"><span>用户信息</span></h3>
    <table class="addNewInfList">
        <tr>
            <th>名称</th>
            <td width="240"><input class="inp-list w-200 clear-mr f-left" type="text" th:value="${user.nickname}" id="nickname" name="nickname" maxlength="16" /></td>
            <th>邮箱</th>
            <td><input class="inp-list w-200 clear-mr f-left" type="text"  th:value="${user.email}" id="email" name="email"  maxlength="120" /></td>
        </tr>
        <tr>
<!--             <th>部门</th> -->
<!--             <td width="240"> -->
<!--                 <div class="selectDownMode f-left w-206"> -->
<!--                     <input type="text" th:if="${user.department!=null}" th:value="${user.department.name}"/> -->
<!--                     <input type="text" th:if="${user.department==null}" value="请选择"/> -->
<!--                     <select class="selectMode" name="department" id="department"> -->
<!--                         <option value="">请选择</option> -->
<!--                         <option th:each="department:${departments}" th:value="${department.id}" -->
<!--                                 th:text="${#strings.length(department.name)>20?#strings.substring(department.name,0,20)+'...':department.name}" -->
<!--                                 th:selected="${user.department.id == department.id}" -->
<!--                                 ></option> -->
<!--                     </select> -->
<!--                 </div> -->
<!--             </td> -->
<th>账号可用状态</th>
        <td width="240">
        	<div>
        		<select name="status" id="status">
        			<option th:each="status:${StatusTypes}" th:value="${status.code}" th:text="${status.name}" th:selected="${status.code==user.status}" >
        			</option>
        		</select>
        	</div>
        </td>
            <th>性别</th>
            <td>
                <div class="selectDownMode f-left w-206">
<!--                     <input type="text" th:if="${user.sex==0}" th:value="男"/> -->
<!--                     <input type="text" th:if="${user.sex==1}" th:value="女"/> -->
<!--                     <input type="text" th:if="${user.sex==null}" th:value="请选择"/> -->
<!--                     class="selectMode"  -->
                    <select  name="sex">
                        <option value="0" th:selected="${user.sex==0}">男</option>
                        <option value="1" th:selected="${user.sex==1}">女</option>
                    </select>
                </div>
            </td>
        </tr>
<!--         <tr> -->
<!--             <th>角色</th> -->
<!--             <td width="240"> -->
<!--                 <div > -->
<!--                     <select name="roles" id="roles" multiple="multiple"> -->
<!--                         <option th:each="role:${roles}" th:value="${role.id}" -->
<!--                                 th:text="${#strings.length(role.name)>20?#strings.substring(role.name,0,20)+'...':role.name}" -->
<!--                                 th:selected="${#lists.contains(rids, role.id)}" -->
<!--                                 ></option> -->
<!--                     </select> -->
<!--                 </div> -->
<!--             </td> -->
           
<!--         </tr> -->
        <tr>
         <th>日期</th>
            <td>
                <input  onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="inp-list w-200 clear-mr f-left" th:value="${user.createTime} ? ${#dates.format(user.createTime,'yyyy-MM-dd HH:mm:ss')} :''" id="createTime" name="createTime"/>
            </td>
        
        </tr>
    </table>
    <div class="bottomBtnBox">
        <a class="btn-93X38 saveBtn" href="javascript:void(0)">确定</a>
        <a class="btn-93X38 backBtn" href="javascript:closeDialog(0)">返回</a>
    </div>
</div>

</form>